package com.treasure.mall.biz.remote.wx;

import me.chanjar.weixin.mp.api.WxMpService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.remote.wx
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/8/26 3:58 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 *
 */
public interface ZbWxMpService {
    WxMpService getService();

    /**
     * 检查
     *
     * @param signature
     * @param timestamp
     * @param nonce
     * @return
     */
    Boolean checkSignature(String signature, String timestamp, String nonce);

    /**
     * 消息处理
     *
     * @param request
     * @param response
     * @return
     */
    String messageHandle(HttpServletRequest request, HttpServletResponse response);

    void createMenu();

    void initSubScribeUsers();
}
